package cate.game.role.pvp.eliterace.msg;


import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.pvp.eliterace.data.EliteRaceSpec;
import cate.game.pvp.eliterace.util.EliteRaceSpecDeserializer;
import cate.game.role.pvp.eliterace.vo.EliteRaceRoundVO;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

import static cate.game.client.msg.id.MsgIdBEliteRace.ROUND_RESP;

@NoArgsConstructor
@AllArgsConstructor
@Data
@ClientMsg(title = "精英赛  回合 返回")
public class EliteRaceRoundResp implements MsgOutput {

    @JsonDeserialize(keyUsing = EliteRaceSpecDeserializer.class)
    public Map<EliteRaceSpec, EliteRaceRoundVO> roundMap;

    @Override
    public MsgConfig conf() {
        return ROUND_RESP;
    }
}
